<?php
require_once "admin/lib/class.trangchu.php";
require_once("blocks/seo.php");
$tc = new trangchu;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title><?php echo $title; ?></title>
    <meta name="description" content="<?php echo $metaD ;?>" />
    <meta name="keywords" content="<?php echo $metaK ;?>" />
    <base href="http://<?php echo $_SERVER['SERVER_NAME'];?>/camera/" />
    <link href="css/style.css" type="text/css" rel="stylesheet">
    <link href="css/function2.css" type="text/css" rel="stylesheet">    
    <script type="text/javascript" src="js/jquery.min.1.8.3"></script>
    <script type="text/javascript" src="js/jquery-ui-1.7.1.custom.min.js"></script>
    <script type="text/javascript" src="js/jquery.jcarousel.min.js"></script>
    <script type="text/javascript" src="js/js_menu.tree.js"></script>
    <script type="text/javascript" src="js/jquery.fancybox-1.3.4.pack.js"></script>
    <script type="text/javascript" src="js/jquery.bxslider.js"></script>
    <script type="text/javascript" src="js/jquery.dropdownPlain.js"></script>
    <script type="text/javascript" src="js/tinybox.js"></script>
    <script type="text/javascript" src="js/jquery.nestedAccordion.js"></script>
    
    <script src="js/script.js" type="text/javascript"></script>
<script src="js/jquery.prettyPhoto.js" type="text/javascript"></script> 
<link href="css/prettyPhoto.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(document).ready(function() {

            $("a#example2").fancybox({
                'overlayShow': false,
                'transitionIn': 'elastic',
                'transitionOut': 'elastic'});
        });
    </script>
    <script type="text/javascript">
        $(function() {
            $("#category").treeview({
                collapsed: true,
                animated: "fast",
                control: "#sidetreecontrol",
                unique: true,
                persist: "location"
            });
        })
    </script>
    <script type="text/javascript">
    window.$zopim||(function(d,s){var z=$zopim=function(c){z._.push(c)},$=z.s=
    d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set.
    _.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute('charset','utf-8');
    $.src='//v2.zopim.com/?1SE5WMPuvJPKz285o2mPPLxCKQ1YRA04';z.t=+new Date;$.
    type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script');
    </script>
    <!--End of Zopim Live Chat Script-->
</head>
<body>
    <div class="container">
        <?php include"blocks/banner.php"; ?>
    </div>
    <?php include"blocks/menu.php"; ?>
    <div class="wraper clr">
        <?php if($com==''){?>
        <div class="slider">
            <?php include"blocks/slide1.php"; ?>
        </div>
        <?php }else{ ?>
        <div style="clear: both;margin-bottom: 10px"></div>
        <?php } ?>
        <div class="sideblock left">
            <?php include"blocks/left.php"; ?>
        </div>
        <div class="mainblock right">
            <?php
            switch($com){
                    case "cat" : include "page/cat.php";break;
                    case "contact" : include "page/contact.php";break;
                    case "about" : include "page/about.php";break;
                    case "detail" : include "page/detail.php";break;
                    default : include "blocks/right.php";break;
            }
            ?>
        </div>
    </div>
    <div class="footer clr">
        <?php include"blocks/footer.php"; ?>
    </div>
</body>
</html>